<template>
  <div class="home">
    <my-add v-model="value" msg="add" @click="add"></my-add>
    <h1>{{ value }}</h1>
  </div>
</template>

<script>
// @ is an alias to /src
import HelloWorld from "@/components/HelloWorld.vue";

export default {
  data() {
    return {
      value: "1111",
    };
  },
  name: "Home",
  components: {
    HelloWorld,
  },
  methods: {
    add() {
      console.log(this.value);
      // this.$store.commit("add",this.value)
    },
  },
};
</script>
